package org.suze.springboot.base.op;

/**
 * @description:
 * @Date : 下午2:51 2017/9/11
 * @Author : 石冬冬-Heil Hitler(dongdong.shi@mljr.com)
 */
public class OpResult<T> {
    private boolean success;
    private T data;
    private int code;

    public OpResult() {
    }

    public OpResult(boolean success, int code) {
        this.success = success;
        this.code = code;
    }

    public OpResult(boolean success, T data, int code) {
        this.success = success;
        this.data = data;
        this.code = code;
    }



    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
